//
//  HMTestViewController.swift
//  WeiBoXR
//
//  Created by acer on 16/9/20.
//  Copyright © 2016年 acer. All rights reserved.
//

import UIKit

class HMTestViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        view.backgroundColor = UIColor.white
        addRightBtn()
    }
    
    private func addRightBtn() {
        
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "push", target: self, action: #selector(pushBtnClick))
    }
    
    
    func pushBtnClick() {
        
        let testVC = HMTestViewController()
        navigationController?.pushViewController(testVC, animated: true)
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
